<template>
  <div class="common-tab-box company-tab-box school-page school-hotcompany">
    <!-- 标题 -->
    <h3 class="section-title">热门公司</h3>
    <h3>
      <span class="cur" v-for="(ct, index) in companyCitys" :key="index">{{
        ct.cityName
      }}</span>
      <!-- <span >北京</span>
      <span>上海</span>
      <span>广州</span>
      <span>全国</span> -->
    </h3>
    <!-- 招聘信息 -->
    <ul>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
      <li class="school-hotcom-li">
        <div class="sub-li">
          <a href="" class="company-info" style="text-decoration: none">
            <div class="company-title">
              <img
                src="https://img.bosszhipin.com/beijin/upload/com/logo/20200429/8f64c9d0b30a53c434b26799ca78966cec9b49ecaf1604cb263748f03d5c2b0f.png?x-oss-process=image/resize,w_100,limit_0"
                alt=""
              />
              <div class="conpany-text">
                <h4>华为</h4>
                <p class="company-text-tag">
                  <span>不需要融资</span>
                  <span>10000人以上</span>
                  <span>计算机软件</span>
                </p>
              </div>
            </div>
            <p class="company-info">
              五险一金，补充医疗保险，定期体检，加班补助，年终奖，股票期权，员工旅游，餐补，节日福利，零食下午茶
            </p>
          </a>
          <div class="company-link column-three">
            <a href="">
              <span>校招职位</span>
            </a>
            <a href="">
              <span>实习职位</span>
            </a>
            <a href="">
              <span>公司评价</span>
            </a>
          </div>
        </div>
        <div class="label-xiaozhao"></div>
      </li>
    </ul>
  </div>
</template>

<script>
import { reqGetSelectPositionTypeList } from "@/api/school";
export default {
  name: "HotCompany",
  data() {
    return {
      companyCitys: [],
    };
  },
  async mounted() {
    const { zpData } = await reqGetSelectPositionTypeList();
    // console.log(zpData);
    this.companyCitys = zpData;
  },
};
</script>

<style lang="less" scoped>
// 热门公司
.common-tab-box {
  overflow: visible;
  margin-top: 48px;
  clear: both;

  h3 {
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    position: relative;

    .cur {
      background: #00bebd;
      color: #fff;
    }
  }

  span {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    background: 0 0;
    border-radius: 6px;
    padding: 4px 16px;
    margin-right: 12px;
    width: auto;
    line-height: 22px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
  }

  // 标题
  .section-title {
    display: inline-block;
    position: relative;
    font-size: 28px;
    font-weight: 600;
    color: #222;
    line-height: 40px;
    height: 40px;
    margin-bottom: 20px;
    margin-right: 40px;
  }

  // 招聘信息
  ul {
    display: block;
    overflow: visible;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    li {
      border: 12px;
      height: 174px;
      width: 384px;
      position: relative;
      display: flex;
      margin: 0 0 16px 0;
      background-color: #fff;
      border-radius: 10px;

      .sub-li {
        border-radius: 12px;
        width: 100%;
        height: 100%;
        position: relative;
        padding: 20px 20px 0 20px;
        box-sizing: border-box;
        display: block;

        .conpany-title .conpany-text {
          text-align: left;
        }

        & > .company-info {
          border: none;
          height: auto;
          padding: 0;
          margin: 0;

          .company-title img {
            width: 54px;
            height: 54px;
            border-radius: 12px;
            border: 1px solid #f8f8f8;
            float: left;
          }

          .conpany-text {
            margin-left: 68px;
            height: 56px;
            text-align: left;
            overflow: hidden;
            text-overflow: ellipsis;

            h4 {
              font-size: 16px;
              font-weight: 500;
              color: #222;
              line-height: 22px;
              height: 22px;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
            }

            p {
              color: #898e89;
              font-size: 12px;
            }

            .company-text-tag {
              height: 22px;
              overflow: hidden;
              white-space: normal;
              line-height: 22px;
              margin-top: 12px;
              display: block;

              span {
                display: inline-block;
                background: #f8f8f8;
                border-radius: 4px;
                font-size: 13px;
                font-weight: 400;
                color: #666;
                line-height: 18px;
                padding: 2px 8px;
                margin-right: 0;
              }
            }
          }

          .company-info {
            font-size: 13px;
            font-weight: 400;
            color: #666;
            line-height: 18px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            height: auto;
            margin: 16px 0;
            border: none;
            padding-top: 0;
          }
        }

        .company-link {
          border-top: none;
          left: 0;
          right: 0;
          padding: 0 20px;
          background: linear-gradient(90deg, #f5fcfc 0, #fcfbfa 100%);
          border-radius: 0 0 12px 12px;
          height: 48px;
          line-height: 48px;
          text-align: center;
          position: absolute;
          bottom: 0;

          a {
            // position: absolute;
            left: 20px;
            display: inline-block;
            font-size: 14px;
            color: #61687c;
            text-decoration: none;

            span {
              margin-right: 5px;
            }
          }
        }
      }

      .label-xiaozhao {
        position: absolute;
        top: 0;
        right: 0;
        border-radius: 0 12px 0 12px;
        background: #e5f8f8;
        color: #00a6a7;
        font-size: 12px;
        font-weight: 500;
        line-height: 17px;
        padding: 3px 13px 4px;
        width: auto;
        height: auto;

        &::before {
          content: "校招";
        }
      }
    }
  }
}
</style>